import request from '@/utils/request'

// 查询学社类别列表
export function listXslb(query) {
  return request({
    url: '/admin/xslb/list',
    method: 'get',
    params: query
  })
}

// 查询学社类别详细
export function getXslb(id) {
  return request({
    url: '/admin/xslb/' + id,
    method: 'get'
  })
}

// 新增学社类别
export function addXslb(data) {
  return request({
    url: '/admin/xslb',
    method: 'post',
    data: data
  })
}

// 修改学社类别
export function updateXslb(data) {
  return request({
    url: '/admin/xslb',
    method: 'put',
    data: data
  })
}

// 删除学社类别
export function delXslb(id) {
  return request({
    url: '/admin/xslb/' + id,
    method: 'delete'
  })
}
